package cn.ljy.quicksnip.model;

import cn.ljy.authority.model.SysHairdresser;
import cn.ljy.authority.model.SysShop;
import cn.ljy.common.model.BaseModel;
import cn.ljy.common.model.validate.AddWorkValidation;
import cn.ljy.common.model.validate.UpdateWorkValidation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@ApiModel(value = "理发师常驻管理")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false, of = {"id"})
public class QsHairdresserShop extends BaseModel {

    @ApiModelProperty(value = "理发师常驻ID", example = "1")
    @NotNull(groups = UpdateWorkValidation.class, message = "理发师常驻ID不能为空")
    private Long id;

    @ApiModelProperty(value = "理发师ID", example = "272")
    @NotNull(groups = AddWorkValidation.class, message = "理发师ID不能为空")
    private SysHairdresser hairdresser;
    private Long hairdresserID;

    @ApiModelProperty(value = "店家ID", example = "288")
    @NotNull(groups = AddWorkValidation.class, message = "店家ID不能为空")
    private SysShop shop;
    private Long shopID;

    @ApiModelProperty(value = "类型：1-常驻，2-特约", example = "1")
    @NotNull(groups = AddWorkValidation.class, message = "类型不能为空")
    private Integer type;

    public QsHairdresserShop(Long id) {
        this.id = id;
    }
}